package com.beamfield.dao.sys;

import com.beamfield.model.AttendDay;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface AttendDayMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AttendDay record);

    int insertSelective(AttendDay record);

    AttendDay selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AttendDay record);

    int updateByPrimaryKey(AttendDay record);

    AttendDay getRecord(@Param("name")String name,@Param("day")String day,@Param("beam_id")Long beamId);

    List<AttendDay> getRecordByMonth(@Param("name")String name,@Param("month")String month,@Param("status")int status,@Param("beam_id")Long beamId);

    List<String> getMonths(@Param("offset")Integer offset,@Param("limit")Integer limit,@Param("name")String name,@Param("year")String year,@Param("beam_id")Long beamId);
}